package ProxyClient;

public class HttpResource {
	private String url;
	private String cacheUrl;
	private String contents;
	private byte[] binaryData;
	private boolean isMedia;
	
	public HttpResource(String url, byte[] binaryData){
		this.url = url;
		this.binaryData = binaryData;
		this.isMedia = false;
	}
	
	public HttpResource(String url, String contents){
		this.url = url;
		this.contents = contents;
		this.isMedia = false;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getCacheUrl() {
		return cacheUrl;
	}

	public void setCacheUrl(String cacheUrl) {
		this.cacheUrl = cacheUrl;
	}

	public String getContents() {
		return contents;
	}

	public void setContents(String contents) {
		this.contents = contents;
	}
	
	public void setBinaryData(byte[] binaryData) {
		this.binaryData = binaryData;
	}
	
	public byte[] getBinaryData() {
		return this.binaryData;
	}
	
	public void setIsMedia(boolean isMedia) {
		this.isMedia = isMedia;
	}
	
	public boolean getIsMedia() {
		return this.isMedia;
	}
}
